<?php

defined('IN_HOUSE5') or exit('No permission resources.');
h5_base::load_sys_class('model','',0);
class type_model extends model {
function __construct() {
$this->db_config = h5_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'type';
parent::__construct();
}
function get_types($siteid){
if(!ROUTE_M) return FALSE;
return $this->select(array('module'=>ROUTE_M,'siteid'=>$siteid),'*','',$order = 'typeid ASC');
}
}
?>